<h1>编辑征文信息</h1>
<% form_for @document do |f| %>
  <%= f.error_messages %>
  <table class="form">
    <tr>
      <th>姓名</th>
      <td><%= f.text_field :name, :class => 'text' %></td>
    </tr>
    <tr>
      <th>工作单位</th>
      <td><%= f.text_field :organization, :class => 'text' %></td>
    </tr>
    <tr>
      <th>通讯地址</th>
      <td><%= f.text_field :address, :class => 'text' %></td>
    </tr>
    <tr>
      <th>邮政编码</th>
      <td><%= f.text_field :postal_code, :class => 'text' %></td>
    </tr>
    <tr>
      <th>联系电话</th>
      <td><%= f.text_field :phone_number, :class => 'text' %></td>
    </tr>
    <tr>
      <th>E-mail</th>
      <td><%= f.text_field :email, :class => 'text' %></td>
    </tr>
    <tr>
      <th>教材名称：</th>
      <td><%= f.text_field :book_name, :class => 'text' %></td>
    </tr>
    <tr>
      <th>作者：</th>
      <td><%= f.text_field :author, :class => 'text' %></td>
    </tr>
    <tr>
      <th>出版社：</th>
      <td><%= f.text_field :publisher, :class => 'text' %></td>
    </tr>
    <tr>
      <th>出版日期：</th>
      <td><%= f.date_select :published_at, :discard_day => true, :use_month_numbers => true, :start_year => 1980, :end_year => 2011 %></td>
    </tr>
    <tr>
      <th>ISBN：</th>
      <td><%= f.text_field :isbn, :class => 'text' %></td>
    </tr>
    <tr>
      <td colspan="2" class="action"><%= f.submit '提交', :class => 'button' %></td>
    </tr>
  </table>
<% end %>